import request from '@/tools/request'

export function departmentCreate(data) {
  return request({
    url: '/department/create',
    method: 'post',
    data
  })
}

export function departmentFindAll(data) {
  return request({
    url: '/department/findAll',
    method: 'post',
    data,
    loading: false
  })
}

export function departmentFindOne(data) {
  return request({
    url: '/department/findOne',
    method: 'post',
    data
  })
}

export function departmentUpdate(data) {
  return request({
    url: '/department/update',
    method: 'post',
    data
  })
}

export function departmentRemove(data) {
  return request({
    url: '/department/remove',
    method: 'post',
    data
  })
}

export function departmentRemoveBatch(data) {
  return request({
    url: '/department/removeBatch',
    method: 'post',
    data
  })
}

export function departmentCreateBatch(data) {
  return request({
    url: '/department/createBatch',
    method: 'post',
    data
  })
}
